package com.xiyoo.cw.common.enums;

import lombok.Getter;

/**
 * @Description: 系统响应枚举
 * @Date: 2024/6/18 10:58
 * @Author: xiyoo
 */
@Getter
public enum ResultCode {

    SUCCESS(0, "成功"),
    ERROR(-1, "失败"),
    CAPTCHA_ERROR(1001, "验证码不存在或已过期"),
    CHECKIN_ERROR(2001, "该任务今天已经打过卡了"),
    SERVER_ERROR(500, "系统错误");

    private int code;

    private String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
